<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-departmentcontacts-edit" th:object="${veDepartmentcontacts}">
            <input name="ContactID" th:field="*{ContactID}" type="hidden">
            <!--<div class="form-group">
                <label class="col-sm-3 control-label">部门名称：</label>
                <div class="col-sm-8">
                    <select name="deptName" class="form-control m-b" th:with="type=${@deptServiceImpl.getDeptList()}">
                        <option th:each="dept : ${type}" th:text="${dept.deptName}" th:value="${dept.deptId}" th:field="*{deptId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">联系人姓名：</label>
                <div class="col-sm-8">
                    <select name="userName" class="form-control m-b" th:with="type=${@userServiceImpl.getUserList()}">
                        <option th:each="user : ${type}" th:text="${user.userName}" th:value="${user.userId}" th:field="*{userId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input name="PhoneNumber" th:field="*{PhoneNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电子邮件：</label>
                <div class="col-sm-8">
                    <input name="Email" th:field="*{Email}" class="form-control" type="text">
                </div>
            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="Comments" class="form-control">[[*{Comments}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/departmentcontacts";
        $("#form-departmentcontacts-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-departmentcontacts-edit').serialize());
            }
        }
    </script>
</body>
</html>